{% extends "learning_logs/base.html" %}

{% block content %}

  <form method="post" action="{% url 'users:register' %}">
      {% csrf_token %}
      <!-- Django自动生成表单 -->
      {{ form.as_p }}
      <button name="submit">register</button>
      <input type="hidden" name="next" value="{% url 'learning_logs:index' %}" />
      <!-- 隐藏的input标签，用于指定表单提交后跳转的页面 -->

  </form>

{% endblock content %}